package com.serkol.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;


@Configuration
public class OpenAIConfig {

    @Bean
    public WebClient webClient() {
        return WebClient.builder()
                .baseUrl("https://api-inference.modelscope.cn/v1")
                .defaultHeader("Authorization", "Bearer 6cc3f5ac-0569-4819-9836-27953bdbacab")
                .build();
    }
}